package com.gengzp.mq.client.core.impl;

import com.gengzp.mq.client.core.MqEnvConfigReader;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ClassName MqEnvConfigReaderimpl
 * @Description
 * @Author gengzp
 * @Date 2025/6/10 1:01
 */
@Component
public class MqEnvConfigReaderImpl implements MqEnvConfigReader {

    @Value("${gengzp-mq.address}")
    private String address;

    @Value("${spring.application.name}")
    private String currentServiceName;

    @Value("${server.port}")
    private String currentPort;

    @Override
    public String getMqAddress() {
        return address;
    }

    @Override
    public String getCurrentServiceName() {
        return currentServiceName;
    }

    @Override
    public String getCurrentPort() {
        return currentPort;
    }

}
